using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.merchantdata.merchantDataDealGroupsConsumption
{
    /// <summary>
    /// 团单消费信息
    /// </summary>
    public class DealGroupConsumptionInfo
    {
        /// <summary>
        /// 团购消费额
        /// </summary>
        [JsonPropertyName("consumeAmt")]
        public double? ConsumeAmt { get; set; }

        /// <summary>
        /// 团购消费验券数
        /// </summary>
        [JsonPropertyName("consumeCnt")]
        public int? ConsumeCnt { get; set; }

        /// <summary>
        /// 团单Id
        /// </summary>
        [JsonPropertyName("dealGroupId")]
        public int? DealGroupId { get; set; }

        /// <summary>
        /// 品牌名称
        /// </summary>
        [JsonPropertyName("dealGroupShortTitle")]
        public string DealGroupShortTitle { get; set; }

        /// <summary>
        /// 团单名字
        /// </summary>
        [JsonPropertyName("dealGroupTitle")]
        public string DealGroupTitle { get; set; }

        /// <summary>
        /// 团单价格
        /// </summary>
        [JsonPropertyName("dealGroupPrice")]
        public string DealGroupPrice { get; set; }

        /// <summary>
        /// 市场价
        /// </summary>
        [JsonPropertyName("marketPrice")]
        public string MarketPrice { get; set; }

        /// <summary>
        /// 平台。0-全部，1-大众点评平台，2-美团平台
        /// </summary>
        [JsonPropertyName("platform")]
        public int? Platform { get; set; }

        public override string ToString()
        {
            return $"DealGroupConsumptionInfo{{ConsumeAmt={ConsumeAmt}, ConsumeCnt={ConsumeCnt}, DealGroupId={DealGroupId}, DealGroupShortTitle={DealGroupShortTitle}, DealGroupTitle={DealGroupTitle}, DealGroupPrice={DealGroupPrice}, MarketPrice={MarketPrice}, Platform={Platform}}}";
        }
    }
}
